using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace UtilidadesHera
{
    public partial class usuarioCVS : Form
    {
        public usuarioCVS()
        {
            InitializeComponent();
            btnRealizaCambio.Click += new EventHandler(btnRealizaCambio_Click);
            this.Load += new EventHandler(usuarioCVS_Load);
        }

        void usuarioCVS_Load(object sender, EventArgs e)
        {
            string[] stream = new string[10];
            string[] stream2 = new string[10];
            stream[0] = Utilidades.leerArchivo("Root", @"C:\HERA_V2\CVS");
            stream2 = stream[0].Split(new char[] { ':' }, 4);
            stream = stream2[2].Split(new char[] { '@' });
            txtUsuarioActual.Text = stream[0];

        }

        void btnRealizaCambio_Click(object sender, EventArgs e)
        {
            Utilidades.buscarReemplazar(@"C:\HERA_V2\", "Root", new string[] { "eliecerLopez", "victorHormazabal" },
                new string[] { "eliecerLopez", "eliecerLopez" }, true, "CVS", false);
        }
    }
}